package com.matrix.java.chap_05;

import java.util.Scanner;

/*
    找出一个整数的因子
 */
public class Ex5_16 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("input: ");
        int num = input.nextInt();
        for (int i = 2; i <= num; i++) {
            if (num%i==0){
                System.out.print(i+" ");
                num/=i;
                i=1;
            }
        }
        input.close();
    }
}
